<?php
namespace app\common\model;

use think\Model;

class Homeuser extends Model
{
	public function checkusername($username){
		$username = $this->where(array('username' => $username))->find();
		if($username){
			return '用户名已存在!';
		}else{
			return false;
		}
	}
	public function checkphone($phone){
		$phone = $this->where(array('phone' => $phone))->find();
		if($phone){
			return '手机号已存在!';
		}else{
			return false;
		}
	}
}